// component/common/tag/tag.js
Component({
  /**
   * 组件的配置
   */
  options: {
    styleIsolation: 'isolated',
    pureDataPattern: /^_/,
  },
  /**
   * 组件的属性列表
   */
  properties: {
    isActive: {
      type: Boolean,
      value: false,
    },
    round: {
      type: Boolean,
      value: false,
    },
    color: {
      type: String,
      value: '#F6F6F6',
    },
    activeColor: {
      type: String,
      value: '#FFF6F6',
    },
    textColor: {
      type: String,
      value: '#333',
    },
    activeTextColor: {
      type: String,
      value: '#E45F58',
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClick() {
      this.triggerEvent('active')
    }
  }
})